package com.itic.appbase.framework.xcx.type;

public enum AcceptOrderType {

	
	automatic("0","自动接单"),Manual("1","手动接单");

	private String state;
	
	private String name;
	
	AcceptOrderType(String state, String name) {
		this.state = state;
		this.name = name;
	}
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public static AcceptOrderType getAcceptOrderType(String state) {
		AcceptOrderType AcceptOrderType = null;
		switch (state) {
		case "0":
			AcceptOrderType = AcceptOrderType.automatic;
			break;
		case "1":
			AcceptOrderType = AcceptOrderType.Manual;
			break;
		}
		return AcceptOrderType;
	}
	

}
